//
//  AddImageCollectionViewCell.swift
//  DSHCMerchant
//
//  Created by 罗德良 on 2018/4/28.
//  Copyright © 2018年 袋鼠好车. All rights reserved.
//

import UIKit

class AddImageCollectionViewCell: UICollectionViewCell {

    @IBOutlet var cellImageView: UIImageView!
    @IBOutlet var deleteBtn: UIButton!
    
    typealias DeleteImageBlock = (_ intValue:Int) -> Void
    
    var deleteImage:DeleteImageBlock?
    
    func callBackBlock(_ block: @escaping DeleteImageBlock) {
        
        deleteImage = block
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    @IBAction func deleteBtnPress(_ sender: UIButton) {
        if deleteImage != nil {
            self.deleteImage!(1)
        }
    }
}
